package com.lzy.mall.product.dao;

import com.lzy.mall.product.vo.SpuItemAttrGroup;
import org.beetl.sql.core.annotatoin.Param;
import org.beetl.sql.core.mapper.BaseMapper;
import org.beetl.sql.core.engine.PageQuery;
import org.beetl.sql.core.annotatoin.SqlResource;
import org.springframework.stereotype.Repository;
import com.lzy.mall.product.entity.PmsAttrGroup;

import java.util.List;

/**
 * 属性分组(PmsAttrGroup)表数据库访问层
 *
 * @author lzy
 * @since 2021-08-25 11:41:08
 */

@Repository
@SqlResource("PmsAttrGroup")
public interface PmsAttrGroupDao extends BaseMapper<PmsAttrGroup> {
    PageQuery<PmsAttrGroup> queryPage(PageQuery pageQuery);

    List<SpuItemAttrGroup> getAttrGroupWithAttrsBySpuId(@Param("spuId") Long spuId,@Param("catalogId") Long catalogId);
}
